package manager;

public class LevelManager {
	private static LevelManager instance = null;
	
	private int score;
	private int level;
	
	private boolean running;
	
	private LevelManager() {
		score = 0;
		level = 1;
		running = true;
	}
	
	public static LevelManager get() {
		if (instance == null) {
			instance = new LevelManager();
		}
		
		return instance;
	}
	
	public void scoreUp(int score) {
		this.score += score;
	}
	
	public void levelUp() {
		level++;
	}
	
	public int getLevel() {
		return level;
	}
	
	public int getScore() {
		return score;
	}
	
	public void setRunning(boolean running) {
		this.running = running;
	}
	
	public boolean isRunning() {
		return running;
	}
}
